package net.oschina.kjtang.qywx.common.message;

import net.oschina.kjtang.qywx.common.entity.Entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by kjtang on 2017/12/1.
 * 消息响应
 */
public class Response<T extends Entity> implements Serializable {

    //响应码
    private Integer rcode;

    //单条数据
    private T data;

    //多条数据
    private List<T> dataList;

    @Override
    public String toString(){
        return "rcode="+rcode+"data="+data+"dataList="+dataList;
    }

}
